﻿#region using
using System;
using Linq2Crm.ObjectModel.Attributes;
using SilverCrmSoap.CrmSdk;


#endregion

namespace SLApp_Test.Model
{
   [CrmEntityMapping("promx_employeeinproject", "promx_employeeinprojectname", "promx_employeeinprojectid")]
   public class ProjectAssignment : BaseEntity
   {
      [CrmFieldMapping("promx_employeelookup")]
      public EntityReference Employee { get; set; }

      [CrmFieldMapping("promx_projectlookup")]
      public EntityReference Project { get; set; }

      [CrmFieldMapping("promx_validfrom")]
      public DateTime? Start { get; set; }

      [CrmFieldMapping("promx_validuntil")]
      public DateTime? End { get; set; }

      [CrmFieldMapping("promx_estimatehours")]
      public double? EstimatedEffort { get; set; }

      [CrmFieldMapping("promx_actualeffort")]
      public double? TotalEffort { get; set; }

      [CrmFieldMapping("promx_hourlyrate")]
      public decimal HourlyRate { get; set; }

      [CrmFieldMapping("promx_etc")]
      public double? PAETC { get; set; }

      public Booking Booking { get; set; }

      [CrmFieldMapping("transactioncurrencyid")]
      public EntityReference Currency { get; set; }
   }
}